<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'login-form',
    'enableClientValidation' => true,
    'clientOptions' => array(
        'validateOnSubmit' => true,
    ),
    'htmlOptions' => array('class' => 'block-content form', 'id' => 'login-form'),
        ));
?>
<?php echo $form->error($model, 'username'); ?>
<?php echo $form->error($model, 'password'); ?>
<p class='inline-medium-label'>
    <?php echo $form->labelEx($model, 'username'); ?>
    <?php echo $form->textField($model, 'username', array('class' => 'required')); ?>
    
</p>
<p class='inline-medium-label'>
    <?php echo $form->labelEx($model, 'password'); ?>
    <?php echo $form->passwordField($model, 'password', array('class' => 'required')); ?>
    
</p>
<p>
    <label>
        <?php echo $form->checkBox($model, 'rememberMe'); ?>
        <?php echo $model->getAttributeLabel('rememberMe'); ?>
    </label>
</p>
<div class='clear'>
</div>
<div class='block-actions'>
    <ul class='actions-left'>
        <!--            <li><a class='button' name='recover_password' href="javascript:void(0);">Recover Password</a></li>
                    <li class='divider-vertical'></li>
                    <li><a class="button red" id='reset-login' href="javascript:void(0);">Cancel</a></li>-->
    </ul>
    <ul class='actions-right'>
        <li>
            <?php echo CHtml::submitButton('Login', array('class' => 'button')); ?>
        </li>
    </ul>
</div>
<?php $this->endWidget(); ?>